package observerNotification;

import java.net.InetAddress;


/**
 * Parent class of the messages concerning a specific conversation to relay between MVC parts
 * 
 * <p>
 * <ul>
 * <li>Project: 	ChatSystemG3</li>
 * </ul>
 * </p>
 * 
 * @author COMBES Nicolas - LECHANTRE Arnaud
 * @see ObserverNotification
 */
public class ConversationObserverNotification  extends ObserverNotification{

	private int convId;					//Identifier of the conversation
	private InetAddress addr;			//Address of the remote user
	private String username;			//name of the user

	/**
	 * Construct
	 * @param convId  : unique identifier of the conversation in which the message should be sent
	 * @param ipAddress	: ip address of the remote user 
	 * @param username	: name of the user that have sent the message
	 */
	public ConversationObserverNotification(int convId, InetAddress ipAddress,
			String username) {
		this.convId = convId;
		this.addr= ipAddress;
		this.username= username;
	}

	public int getConvId() {
		return convId;
	}

	public void setConvId(int convId) {
		this.convId = convId;
	}

	public InetAddress getAddr() {
		return addr;
	}

	public void setAddr(InetAddress addr) {
		this.addr = addr;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}


}
